import request from '@/utils/request'

// 查询便民信息列表
export function listConvenient(query) {
  return request({
    url: '/convenient/convenient/list',
    method: 'get',
    params: query
  })
}

// 查询便民信息详细
export function getConvenient(id) {
  return request({
    url: '/convenient/convenient/' + id,
    method: 'get'
  })
}

// 新增便民信息
export function addConvenient(data) {
  return request({
    url: '/convenient/convenient',
    method: 'post',
    data: data
  })
}

// 修改便民信息
export function updateConvenient(data) {
  return request({
    url: '/convenient/convenient',
    method: 'put',
    data: data
  })
}

// 删除便民信息
export function delConvenient(id) {
  return request({
    url: '/convenient/convenient/' + id,
    method: 'delete'
  })
}

// 导出便民信息
export function exportConvenient(query) {
  return request({
    url: '/convenient/convenient/export',
    method: 'get',
    params: query
  })
}